﻿using Microsoft.Extensions.DependencyInjection;
using OnePay.DbMigrations.EntityFrameworkCore.AbpDb.EntityFrameworkCore;
using OnePay.DbMigrations.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Autofac;
using Volo.Abp.EntityFrameworkCore;
using Volo.Abp.Modularity;

namespace OnePay.DbMigrations.Host
{
    [DependsOn(
        typeof(AbpAutofacModule),
        typeof(DbMigrationsSharedModule),
        typeof(AbpDbMigrationsEntityFrameworkCoreModule)
        )]
    public class DbMigrationsModule : AbpModule
    {
        public override void ConfigureServices(ServiceConfigurationContext context)
        {
            Configure<AbpDbContextOptions>(options => {
                options.UseMySQL();
            });
        }
    }
}
